package com.yuanjin.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

import com.yuanjin.R;

public class Voice_MainActivity extends Activity implements OnClickListener {
	private EditText txt_result;
	private Button iat_recognize;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.voice_activity_main);
		initView();

	}
	private void initView() {
		txt_result = (EditText) findViewById(R.id.txt_result);
		iat_recognize = (Button) findViewById(R.id.iat_recognize);
		iat_recognize.setOnClickListener(this);
	}
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.iat_recognize :// 搜索点击监听事件
				Intent intent = new Intent(Voice_MainActivity.this, Voice_IatDemo.class);
				startActivity(intent);
				break;

			default :
				break;
		}
	}

}
